using System.Collections;
using System.Runtime.CompilerServices;
using Actors;
using Nsb.Classes;
using jQueryApi;

namespace Yoshi.Classes
{
    [IgnoreNamespace]
    public class EyeFocusDropMenu : DropMenu
    {
        private readonly Eyes _eyes;

        public EyeFocusDropMenu(jQueryObject el, Dictionary nameList, ControlEventDelegate handler, Eyes eyes) : base(el, nameList, handler)
        {
            _eyes = eyes;
        }

        public override void ArrowClick()
        {
            _eyes.MoveToElement(List);
        }

        public override void MenuHide()
        {
            _eyes.FollowMouse();
        }
    }
}